﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZP.Common
{
    public class ZPCommon
    {
        public static string System_Name = "格太政策申请自评价管理系统";

        public static string ZP_USER_DEFAULT_PASSWORD = "111111";//用户默认密码
        public static int ZP_LOGIN_ERROR_MAX_COUNT = 10;    //最大登录错误密码次数

        //顶象APPID
        public static string ZP_DX_APPID = "681861683ccbd22c95f3fd5356b3feb0";
        //顶象APPSecret
        public static string ZP_DX_APPSecret = "16b9f99d8e3d5a616eca8cb794666888";

        public static string ZP_Version = DateTime.Now.ToString("yyyyMMddHHmmss");
        public static string SESSION_Login = "UserLoginInfo"; //后台管理用户session

        public static string SESSION_Portal_Login = "PortalUserInfo";   //前台门户企业用户session

        //默认文件存储目录
        public static string Upload_Save_DIR = "/TempFile/ZPJ/upload/";
        //删除后文件备份目录
        public static string Upload_BAK_DIR = "/TempFile/ZPJ/upload_delete_bak/";
        //临时上传目录，可以随时删除里面文件
        public static string Upload_TEMP_DIR = "/TempFile/ZPJ/temp/";

        /// <summary>
        /// PSI登录是否开启
        /// </summary>
        public static string isVerification = ConfigurationManager.AppSettings["Verification_Code"];

        /// <summary>
        /// PSI网站网址
        /// </summary>
        public static string ZP_WebSite = ConfigurationManager.AppSettings["zp_website"];
        #region 忘记密码邮件标题和内容
        /// <summary>
        /// href 加密 token
        /// </summary>
        public static string ZP_FIND_PASSWORD_TOEKN = "|@$-%!*^(psi20199102isp)^*!%-$@|";//不能有&字符,影响解码
        public static string ZP_FIND_PASSWORD_SUBJECT = "找回密码";
        public static string ZP_FIND_PASSWORD_BODY = @"<div style='margin-top:83px;font-size:14px;text-align:left;margin-left:42px;margin-right:42px;line-height:20px;'>
            <div style = 'padding:0;margin:0;font-weight:bold;line-height:22px;' > 亲爱的系统用户：</div>
            <div style = 'margin-top:8px;line-height:22px;' > 请您在24小时内点击以下链接修复系统帐号的登录密码 </div>
            <div style='margin-top:16px;margin-bottom:40px;'>
                <a href = '{0}' target='_blank' style='color:#0699FF;text-decoration:none;line-height:22px;font-size:14px;word-wrap: break-word;word-break: break-all;' rel='noopener'>{0}</a>
            </div>
            <div style = 'line-height:22px;' > 若链接点击无效，请复制链接到浏览器地址栏中打开。</div>
            <div style = 'line-height:22px;margin-top:5px;' > 若您未申请密码修复，请忽略此邮件。</div>
        </div>";
        #endregion
    }
}
